package com.kuaimacode.kframework.api.vo.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author qinyong
 * @Title:
 * @Package com.kuaimacode.kframework.api.vo.request
 * @Description: created by IntelliJ IDEA
 * @date 2019-04-30 22:10
 */
@Data
public class AppletsLoginNewReq {
    /**
     * 小程序登录返回的code
     */
    @NotBlank(message = "code不能为空")
    @ApiModelProperty(value = "code")
    private String code;

    /**
     * 用户手机号
     */
    @NotBlank(message = "手机号")
    @ApiModelProperty(value = "phone")
    private String phone;

    /**
     * iv
     */
    @ApiModelProperty(value = "iv")
    private String iv;

    /**
     * 手机号是否加密，微信默认手机号加密，自定义手机号不加密（0 否 1 是）
     */
    @NotNull(message = "是否加密")
    @ApiModelProperty(value = "encrypt")
    private Integer encrypt;

    /**
     * 自定义手机号时，需要校验码
     */
    @ApiModelProperty(value = "validCode")
    private String validCode;
}
